package com.changgou.user.feign;

import com.changgou.user.pojo.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @ProjectName: springbootthymeleaf
 * @Package: com.changgou.user.feign
 * @ClassName: UserFeign
 * @Author: 孙明田
 * @Description:
 * @Date: 2020/6/26 9:20
 * @Version: 1.0
 */

@FeignClient(name = "user")
public interface UserFeign {

    @GetMapping("/user/load/{username}")
    public User findUserInfo(@PathVariable("username") String username);
}
